from fastapi import FastAPI, Form, File, UploadFile
import uvicorn

app = FastAPI()


@app.post('/files')
async def create_file(file: bytes = File(...), file_b: UploadFile = File(...), token: str = Form(...)):
    return {"file_size": len(file), "file_b_content_type": file_b.content_type, "token": token}


if __name__ == '__main__':
    uvicorn.run(app="main:app", host="127.0.0.1", port=8000, reload=True, debug=True)
